<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
 
<%@page isELIgnored="false" %>

<c:set var="cont" value="1"/>
<c:forEach items="${requestScope.versions}" var="version">
	<c:set var="cont" value="${cont+1}"/>
 		<c:if test="${version.youtubeLinked}">
		<div class="versionbox">
			<a href="/${version.title}/${version.author}/${version.youtubeInfo.videoId}">
			<img src="${version.youtubeInfo.thumbnails[0].url}">
	 		${version.title}<br /><strong>${version.author}</strong>
	 		</a>
		</div>		
 		</c:if>
</c:forEach>
